package com.bm.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import lombok.Data;

/**
 * 
 * @TableName ejyy_user_car_operate_log
 */
@TableName(value ="ejyy_user_car_operate_log")
@Data
public class EjyyUserCarOperateLog implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long userCarId;

    /**
     * 
     */
    private Long wechatMpUserId;

    /**
     * 
     */
    private Long propertyCompanyUserId;

    /**
     * 1 解绑；0 绑定
     */
    private Byte status;

    /**
     * 1 用户  2家人 3物业公司
     */
    private Byte operateBy;

    /**
     * 
     */
    private Long createdAt;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        EjyyUserCarOperateLog other = (EjyyUserCarOperateLog) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getUserCarId() == null ? other.getUserCarId() == null : this.getUserCarId().equals(other.getUserCarId()))
            && (this.getWechatMpUserId() == null ? other.getWechatMpUserId() == null : this.getWechatMpUserId().equals(other.getWechatMpUserId()))
            && (this.getPropertyCompanyUserId() == null ? other.getPropertyCompanyUserId() == null : this.getPropertyCompanyUserId().equals(other.getPropertyCompanyUserId()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getOperateBy() == null ? other.getOperateBy() == null : this.getOperateBy().equals(other.getOperateBy()))
            && (this.getCreatedAt() == null ? other.getCreatedAt() == null : this.getCreatedAt().equals(other.getCreatedAt()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getUserCarId() == null) ? 0 : getUserCarId().hashCode());
        result = prime * result + ((getWechatMpUserId() == null) ? 0 : getWechatMpUserId().hashCode());
        result = prime * result + ((getPropertyCompanyUserId() == null) ? 0 : getPropertyCompanyUserId().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getOperateBy() == null) ? 0 : getOperateBy().hashCode());
        result = prime * result + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", userCarId=").append(userCarId);
        sb.append(", wechatMpUserId=").append(wechatMpUserId);
        sb.append(", propertyCompanyUserId=").append(propertyCompanyUserId);
        sb.append(", status=").append(status);
        sb.append(", operateBy=").append(operateBy);
        sb.append(", createdAt=").append(createdAt);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}